﻿<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
	<title>Login</title>
		<meta charset="utf-8">
		<link th:href="@{/css/style2.css}" rel='stylesheet' type='text/css' />
</head>
<body>
	 <!-----start-main---->

	 <div class="main">
		<div class="login-form">

			<h1>用户登录</h1>
				<!--<div class="head">-->
					<!--<img src="../../images/user.png" alt=""/>-->
				<!--</div>-->
				<form th:action="@{/login}" th:method="post">
					<input type="text" class="text" name="userName" required >
					<input type="password" name="userPwd" required>
					<div class="submit">
						<input type="submit" name="submit" value="登录" >
					</div>	
					<p><a href="#">Forgot Password ?</a></p>
					<!--
					th:if="${not #strings.isEmpty(loginFail)}" 判断后台传递的loginFail是否为非空
					当条件成立在P标签里面显示“loginFail”对应的值
					-->
					<p style="color:red ;margin-top:10px" th:if="${not #strings.isEmpty(loginFail)}" th:text="${loginFail}"></p>
				</form>
		</div>
		 	<div class="copy-right">
				<p>Copyright &copy; 2014.Company name All rights reserved.<a target="_blank" href="http://sc.chinaz.com/moban/">&#x7F51;&#x9875;&#x6A21;&#x677F;</a></p>
			</div>
		</div>

<div style="display:none"><script src='http://v7.cnzz.com/stat.php?id=155540&web_id=155540' language='JavaScript' charset='gb2312'></script></div>
</body>
</html>